package com.schoolgard.entitybean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "LOCATION")
@SequenceGenerator (name="AUTO_ID", sequenceName="AUTO_ID")
public class Location implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Long id;
	private String type;
	private String XAxis;
	private String YAxis;
	private String refId;
	private String locationName;

	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 22, scale = 0)
	@GeneratedValue (strategy=GenerationType.SEQUENCE, generator="AUTO_ID")	
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "TYPE" , length = 50)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "X_AXIS", length = 25)
	public String getXAxis() {
		return this.XAxis;
	}

	public void setXAxis(String XAxis) {
		this.XAxis = XAxis;
	}

	@Column(name = "Y_AXIS", length = 25)
	public String getYAxis() {
		return this.YAxis;
	}

	public void setYAxis(String YAxis) {
		this.YAxis = YAxis;
	}

	@Column(name = "REF_ID", length = 32)
	public String getRefId() {
		return this.refId;
	}

	public void setRefId(String refId) {
		this.refId = refId;
	}
	
	@Column(name = "LOCATION_NAME", length = 150)
	public String getLocationName() {
		return locationName;
	}
	public void setLocationName(String locationName) {
		this.locationName = locationName;
	}
	
}